<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加文本关键词回复</title>
<link rel="shortcut icon" type="image/ico" href="${basePath}/favicon.ico?v=1"/>
<link rel="stylesheet" type="text/css" href="${basePath}/css/style-1.css"/>
<link rel="stylesheet" type="text/css" href="${basePath}/css/style_2_common.css"/>
<script type="text/javascript" src="${basePath}/js/jquery-1.8.3.min.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE">
<#assign current='menu_txt'>
	<div id="wp" class="wp">
		<#include "/include/header.html"/>
		<!--中间内容-->
		<div class="contentmanage">
			<div class="developer">
				<div class="tableContent">
				<#include "/include/left.html"/>
				<#include "/include/wxtop.html"/>
				<div class="content">
					<div class="cLineB">
						<h4 style="font-size:16px;">编辑文本自定义内容</h4>
					</div>
					<div class="msgWrap">
						<form class="form" method="post" action="${basePath}/txt/edit"  onsubmit="return checkForm();">
							<input type="hidden" name="wxid" value="${wxid?default('')}"/>
							<input type="hidden" name="id" value="${bean.id?default(0)}"/>
							<table class="userinfoArea" style="margin: 20px 0 0 0;" border="0" cellpadding="0" cellspacing="0" width="100%">
								<thead>
									<tr>
										<th valign="top"><label for="keyword">关键词：</label></th>
										<td><input class="px" id="keyword" name="keyword" value="${bean.keyword?default('')}" style="width: 500px" type="text"><br>多个关键词请用空格格开：例如: 美丽&nbsp;漂亮&nbsp;好看 </td>
										<td>&nbsp;</td>
									</tr>
									<tr>
										<th valign="top">关键词类型：</th>
										<td>
											<label for="radio2"><input class="radio" id="radio2" name="keywordType" value="2" checked="checked" type="radio"/>包含匹配 （当此关键词包含粉丝输入关键词时有效）</label><br>
											<label for="radio1"><input id="radio1" class="radio" name="keywordType" value="1" <#if bean.keywordType?exists && bean.keywordType==1>checked="checked"</#if> type="radio"/>完全匹配（当此关键词和粉丝输入关键词完全相同时有效）</label>
										</td>
									</tr>
								</thead>
								<tbody>
									<tr>
										<th valign="top"><label for="text">内容或简介：</label></th>
										<td>
											<textarea class="px" id="Hfcontent" name="content" style="width: 500px; height: 150px">${bean.content?default('')}</textarea>
											<p>请不要多于1000字否则无法发送!</p>
											<p><#include "/include/face.html"/></p>
										</td>
										<td rowspan="2" valign="top">
										</td>
									</tr>
									<tr>
										<th></th>
										<td>
											<button type="submit" name="button" class="btnGreen left">保存</button> 
										</td>
									</tr>
								</tbody>
							</table>
						</form>
					</div>
				</div>
				<div class="clr"></div>
			</div>
		</div>
	</div>
</div>
<#include "/include/footer.html"/>

<script type="text/javascript">
	function jsbq(srt) {
		document.getElementById("Hfcontent").value = document.getElementById("Hfcontent").value + "/"+ srt;
	}
	function checkForm(){
		var keyword = document.getElementById("keyword");
		if(keyword.value==null||keyword.value==""){keyword.focus();return false;}
		var textarea = document.getElementById("Hfcontent");if(textarea.value==null||textarea.value==""){textarea.focus();return false;}if(textarea.value.length>1000){textarea.focus();return false;}
	}
</script>
</body>
</html>